package org.alex.sample.service.Impl;

import java.util.List;

import org.alex.sample.VO.ExamScoreVO;
import org.alex.sample.dao.ExamScoreDAO;
import org.alex.sample.model.ExamScore;
import org.alex.sample.model.Subject;
import org.alex.sample.page.PagerModel;
import org.alex.sample.service.ExamScoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ExamScoreServiceImpl implements ExamScoreService {
	
	@Autowired
	private ExamScoreDAO examScoreDao;

	@Override
	public PagerModel<ExamScore> findAllExamScore() throws Exception {
		return examScoreDao.findAllExamScore();
	}

	@Override
	public List<Subject> findSubjectNameAndId() throws Exception {
		return examScoreDao.findSubjectNameAndId();
	}

	@Override
	public List<ExamScoreVO> searchExamScore(Integer subId, String userName, String name, String examTime)
			throws Exception {
		return examScoreDao.searchExamScore(subId, userName, name, examTime);
	}
	

}
